<include file="public@header" />
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <!-- <li class="active"><a href="{:url('AdminCategory/index')}">分类管理</a></li>-->
        <li class="active"><a href="active">学员信息展示</a></li>
        <li class="#"><a href="{:url('TechAdmin/stuadd')}">添加学生</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('TechAdmin/searchstudents')}">
        剧种:
        <select class="form-control" name="juzhong" style="width: 140px;">
            <option value='all'>全部</option>
            <foreach name="juzhong" item="vo">
                <option value="{$vo.id}">{$vo.name}</option>
            </foreach>
        </select> &nbsp;&nbsp;
        时间:
        <input type="text" class="form-control js-bootstrap-datetime" name="start_time"
               value="{$start_time|default=''}"
               style="width: 140px;" autocomplete="off">-
        <input type="text" class="form-control js-bootstrap-datetime" name="end_time"
               value="{$end_time|default=''}"
               style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
        关键字:
        <input type="text" class="form-control" name="keyword" style="width: 200px;"
               value="{$keyword|default=''}" placeholder="请输入帐号/姓名/剧种/行当/流派..." width="400px">
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:url('TechAdmin/students')}">清空</a>
    </form>
    <form method="post" class="js-ajax-form" action="">
        <div class="table-actions">
            <button class="btn btn-danger btn-sm js-ajax-submit" type="submit"
                    data-action="{:url('TechAdmin/deletestu')}" data-subcheck="true" data-msg="您确定删除吗？">
                {:lang('DELETE')}
            </button>
        </div>
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="15">
                    <label>
                        <input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
                    </label>
                </th>
                <notempty name="category">
                    <th width="50">{:lang('SORT')}</th>
                </notempty>
                <th width="50">ID</th>
                <th>帐号</th>
                <th>姓名</th>
                <th>年龄</th>
                <th>头像</th>
                <th>电话</th>
                <th>性别</th>
                <th>所在地区</th>
                <th>行当</th>
                <th>擅长剧种</th>
                <th>时间</th>
                <th>状态</th>
                <th width="180">操作</th>
            </tr>
            </thead>
            <tbody>
            <noempty name="res">
                <foreach name="res" item="vo">
                    <tr>
                        <td>
                            <input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"
                                   value="{$vo.id}" title="ID:{$vo.id}">
                        </td>
                        <td>
                            {$vo.id}
                        </td>
                        <td>
                            {$vo.username}
                        </td>
                        <td>
                            {$vo.xingming}
                        </td>
                        <td>
                            {$vo.nianling}
                        </td>
                        <td>
                            <noempty name="$vo.headimage">
                                <image src=" <?php echo 'http://'.$_SERVER['HTTP_HOST'].'/upload/'.$vo['headimage'] ?>" style="height:100px;width:100px;"></image>
                            </noempty>
                        </td>
                        <td>
                            {$vo.dianhua}
                        </td>
                        <td>
                            <if condition="$vo.xingbie==1">
                                男
                                <else/>
                                女
                            </if>
                        </td>
                        <td>
                            {$vo.address}
                        </td>
                        <td>
                            {$vo.hangdang}
                        </td>
                        <td>
                            {$vo.juzhong}
                        </td>
                        <td>
                            {:date('Y-m-d H:i:s',$vo.dottime)}
                        </td>
                        <td>
                            <if condition="$vo.status==0">
                                启用
                                <else/>
                               禁用
                            </if>
                        </td>
                        <td>
                            <a href="{:url('TechAdmin/setstatus',array('id'=>$vo['id']))}" class="js-ajax-submit">
                                <if condition="$vo.status==0">
                                    禁用
                                    <else/>
                                    启用
                                </if>
                            </a>
                            <a href="{:url('TechAdmin/deletestu',array('id'=>$vo['id']))}" class="js-ajax-delete">删除</a>
                            <a href="{:url('TechAdmin/stuedit',array('id'=>$vo['id']))}" class="js-ajax-submit">修改</a>
                        </td>
                </foreach>
            </noempty>
            </tbody>
        </table>
        <ul class="pagination">{$page|default=''}</ul>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>